<?php
/**
 * Shipping shipping_detail, Order_detail,customer,product
 *
 * @author Mike Gao
 */
class ShippingDetailOrderDetailViewModel extends ViewModel{
    protected $pk  = 'Shipping_detail.id';

    public $viewFields = array(
    	'Shipping_detail' => array('*'),
    	'Order_detail' => array('mano'=>'order_detail_mano','_on' =>'Shipping_detail.order_detail_id = Order_detail.id'),
        //'Customer' => array('name'=>'customer', '_on' => 'Sale.customer_id = Customer.id'),
        
        //'Order_detail' => array('id'=>'did','mano'=>'dmano','status'=>'dstatus','_on' => 'Order_detail.id = Shipping_detail.order_detail_id'),
        'Product' => array('id'=>'pid', 'name','ename', 'cas','_on' => 'Shipping_detail.product_id = Product.id'),
        'Shipping' => array('id'=>'shipping_id','mano' => 'shipping_mano','order_id','create_time'=>'shipping_time','_on' => 'Shipping.id = Shipping_detail.shipping_id' ),
        
    );


}
?>
